import { redirect } from "react-router-dom";
import { reqDeleteStudent } from "../../api/student";

export async function action({params}){
    await reqDeleteStudent(params.id)
    return redirect('/studentList')
}